<template>

<div id="AuthMenu">
  <div id="homeBar">
    <mu-appbar title="授权管理" style="background-color:#409EFF">
      <mu-icon-button  icon="arrow_back_ios" slot="left" :to="{name: 'Home' }"/>
    </mu-appbar>
  </div>

  <mu-list>
    <mu-list-item title="审核信息" :to="{name: 'AuditInformation' }">
      <mu-avatar v-bind:src="this.$image.icon1" slot="leftAvatar"/>

      <mu-icon value="arrow_forward"  slot="right"/>
    </mu-list-item>
    <mu-list-item v-if="!this.isGm1"  title="授权记录" :to="{name: 'AuthLog' }">
      <mu-avatar v-bind:src="this.$image.icon2" slot="leftAvatar"/>

      <mu-icon value="arrow_forward" slot="right"/>
    </mu-list-item>
  </mu-list>

</div>

</template>

<script>

  export default {
    data () {
      return {
        isGm1: false
      }
    },
    methods: {

    },
    mounted () {
      if (sessionStorage.getItem('role') === 'gm1') {
        this.isGm1 = true
      }
    }
  }
</script>
